import java.io.File;
import java.io.FileReader;
import java.io.IOException;
import java.io.Reader;


public class Teat
{

    public static void main(String[] args )throws IOException{
        File f=new File("d:/test.txt");
       boolean ret= f.createNewFile();
        try (Reader reader = new FileReader("d:/test.txt")) {
            while (true) {
                char[] cbuf = new char[3];
                int n = reader.read(cbuf);
                if (n == -1) {
                    break;
                }
                System.out.println("n = " + n);
                for (int i = 0; i < n; i++) {
                    System.out.println(cbuf[i]);
                }
            }
        }

    }
}
